﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace homework3
{
    public class numsOp
    {
        private int[] nums;
        int length = 0;
        int min; int max; double avg = 0;
        public int Min{get{ return min; } }
        public int Max{get{ return max; } }
        public double Avg{get{ return avg; } }
        public numsOp(int[] nums)
        {
            this.nums = nums;
            this.length = nums.Length;
        }
        public void getMes() {
            min = max = nums[0];
            for (int i = 1; i < length; i++)
            {
                avg += nums[i];
                if(nums[i] < min) min = nums[i];
                if (nums[i] > max) max = nums[i];
            }
            avg/=nums.Length;
        }
    }
    internal class Program
    {

        static void Main(string[] args)
        {
            int[] nums = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
            numsOp op=new numsOp(nums);
            op.getMes();
            Console.WriteLine(op.Min+"  "+op.Max+"  "+op.Avg);
        }
    }
}
